<template>
  <van-cell>
    <template #title>
      <div class="attendance-item">
        <div class="date">{{ item.date }}</div>
        <div class="time">
          <div>签到时间：{{ item.signInTime }}</div>
          <div>签退时间：{{ item.signOutTime }}</div>
          <div>考勤时长：{{ item.duration }}</div>
        </div>
      </div>
    </template>
  </van-cell>
</template>

<script>
export default {
  name: 'AttendanceItem',
  props: {
    item: {
      type: Object,
      required: true
    }
  }
}
</script>

<style scoped>
.attendance-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date {
  font-weight: bold;
}

.time {
  color: #666;
  font-size: 14px;
}
</style> 